package com.mine.frame.mylandemo.ui.dialog

import android.app.AlertDialog
import android.content.Context
import android.os.Bundle
import android.view.View
import com.blankj.utilcode.util.ClickUtils
import com.mine.frame.mylandemo.R
import kotlinx.android.synthetic.main.dialog_haobo_menu.*

/**
 * @Date 2022/6/10
 * Description:
 */
class HaoBoMenuDialog(context: Context) : AlertDialog(context) {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.dialog_haobo_menu )
    }


    fun setBtnClickListener(listener : (View) -> Unit){
        ClickUtils.applySingleDebouncing(arrayOf(btnLearn ,btnLearnLast ,btnClearNumber ,btnBps ,btnSave,btnReset)){
            this.dismiss()
            listener(it)
        }

    }
}